/*
 * consumer.h
 *
 *  Created on: Mar 7, 2013
 *      Author: abrahamsantini
 */

#ifndef CONSUMER_H_
#define CONSUMER_H_
#include "semaphore.h"
#include "sharedMemory.h"
//#include "process.h"

typedef struct {
	unsigned int next_instr;
	sharedMemory_t *sm;
	unsigned int num_of_cycles;
}consumer_t;

int init_consumer(consumer_t *cons, sharedMemory_t *sm);


#endif /* CONSUMER_H_ */
